package com.hainabo.mgcmall.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.hainabo.mgcmall.model.DataDict;

/**
 * Created by surfingren on 2017/8/30.
 */
public interface DataDictRepository extends PagingAndSortingRepository<DataDict, Long> {
	// 根据dictName查询
	public List<DataDict> findByDictName(String dictName);

	// 根据dictCode查询
	public List<DataDict> findByDictCode(String dictCode);

	// 根据dictName或者dictCode查询
	public List<DataDict> findByDictNameOrDictCode(String dictName, String dictCode);
}
